﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class FormText : Form
    {
        private String sTxt = ""; 
        public FormText()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            sTxt = textBox1.Text;
            this.Hide();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            sTxt = "";
            this.Hide();
        }
        public String  getText()
        {
            return sTxt; 
        }
        public bool isOK()
        {
            return (sTxt != "");
        }
    }
}
